package com.ym.medical.domain.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.ym.common.enums.UserUserTypeEnum;
import com.ym.medical.enums.InformationInforStateEnum;
import com.ym.medical.enums.InformationInforTypeEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 平台公告、医生接单后回复了你的消息、退款成功通知、医生发布的新话题对象 information
 *
 * @author ym
 * @date 2020-08-21
 */
@ApiModel("平台公告、医生接单后回复了你的消息、退款成功通知、医生发布的新话题-列表")
@Data
public class InformationListPcVO implements Serializable{

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    private Long id;

    @ApiModelProperty("消息类别")
    @JsonSerialize(converter = InformationInforTypeEnum.Covert.class)
    private String inforType;

    @ApiModelProperty("消息状态")
    @JsonSerialize(converter = InformationInforStateEnum.Covert.class)
    private String inforState;

    @ApiModelProperty("发送时间")
    private Date sendTime;

    @ApiModelProperty("发送对象")
    private Long sendObjId;

    @ApiModelProperty("接受对象")
    private Long receiverObjId;

    @ApiModelProperty("消息标题")
    private String inforTitle;

    @ApiModelProperty("消息内容")
    private String inforData;

    @ApiModelProperty("消息URL")
    private String srcUrl;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("目的地")
    @JsonSerialize(converter = UserUserTypeEnum.Covert.class)
    private String destination;

    @ApiModelProperty("消息扩展内容(josn格式)")
    private String extContent;

}
